﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
namespace ProjectStudy.App_Code
{
    public class SysSession:Page
    {
        public SysSession()
        { 
          
        }

        public static string UserName { get { return (string)HttpContext.Current.Session["username"]; } }
        public static string UserGroup { get { return (string)HttpContext.Current.Session["group"].ConvertObjToStr(); } }
        public static int classRight { get {
            if (HttpContext.Current.Session["class"].ConvertObjToStr() == "")
            {
                return 0;
            }
            else
            {
                return Convert.ToInt32(HttpContext.Current.Session["class"].ConvertObjToStr());
            }
        } }
        
    }
    
    
}